/*******************************************************************************
 * Package: com.hngtrust.iir.user.controller.vo
 * Type:    AddRoleUserReqVO
 * Date:    2021/3/17 15:03
 *
 * Copyright (c) 2021 HUANENG GUICHENG TRUST CORP.,LTD All Rights Reserved.
 *
 * You may not use this file except in compliance with the License.
 *******************************************************************************/
package com.hngtrust.iir.user.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 添加用户角色请求
 *
 * @author Keqiwei
 * @date 2021/3/17 15:03
 */
@ApiModel(description = "添加用户角色请求")
@Data
public class AddRoleUserReqVO {
    /**
     * id
     */
    @ApiModelProperty(value = "ID")
    private Long id;
    
    @ApiModelProperty(value = "角色名")
    private String name;
    /**
     * 用户角色列表
     */
    @ApiModelProperty(value = "用户角色列表")
    private List<RoleUser> users;
    
    @ApiModel(description = "用户列表")
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class RoleUser {
        /**
         * 数据ID
         */
        @ApiModelProperty(value = "用户ID", dataType = "Long")
        private Long userId;
    
        /**
         * 用户状态
         */
        @ApiModelProperty(value = "用户状态，选择 1，未选 0", dataType = "Long")
        private Long status;
    }
}
